package com.xzkydz.all_sensor.fum;

/**
 * Created by Smilekun on 2016/8/22.
 */
public class Ascii {
    public static String  asciiToInt(int in){

        String  result  = "" ;
        switch (in){
            case 48:
                result="0";
            break;
            case 49:
                result="1";
            break;
            case 50:
                result="2";
            break;
            case 51:
                result="3";
            break;
            case 52:
                result="4";
            break;
            case 53:
                result="5";
            break;
            case 54:
                result="6";
            break;
            case 55:
                result="7";
            break;
            case 56:
                result="8";
            break;
            case 57:
                result="9";
            break;
            case 46:
                result=".";
            break;
            default:
                break;

        }
        return result;
    }

}
